<!DOCTYPE html>
<html lang="en">
<head>
    <title>新增维修单</title>
    <link rel="stylesheet" type="text/css" href="../../statics/css/public/flowChart.css">
    <meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






</head>
<body class="ren-body">
<div id="rrapp" v-cloak>
    <form class="layui-form ren-form" style="margin-bottom: 60px;">
        <div class="form-content-box">
            <div class="form-content-session-box">
                <div class="card">
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">选择车牌号:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.carNo"  lay-verify="carNoVerify"  id="carPlateNo"  @click="selectCarNo" type="text" class="layui-input searchVal"  placeholder="请选择车牌号" readonly/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">选择车架号:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.vinNo" lay-verify="vinNoVerify" @click="selectVinNo"  id = "vinNo"  type="text" class="layui-input searchVal"  placeholder="请选择车架号" readonly/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-content-box">
            <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                车辆基础信息
            </div>
            <div class="form-content-session-box">
                <div class="card">
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">车辆品牌/车型:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.carBrandModelName" id="carBrandModelName" value="" type="text" class="layui-input searchVal"  placeholder="" readonly/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">车牌号:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.carNo"  id="carNo" type="text"   class="layui-input searchVal"  placeholder="" readonly/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">车架号:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.vinNo"  type="text" id = "carVinNo"  class="layui-input searchVal"  placeholder="" readonly/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">客户名称:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.customerName" id="customerName"  type="text" class="layui-input searchVal"   placeholder=""  readonly/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">车辆状态:</label>
                            <div class="layui-input-inline">
                                <input  v-model="carRepairOrder.carStatusStr" id="carStatusStr" type="text"   class="layui-input searchVal"   placeholder=""  readonly/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">订单编号:</label>
                            <div class="layui-input-inline">
                                <input  v-model="carRepairOrder.carOrderNo" type="text"   class="layui-input searchVal" placeholder=""  readonly/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm12 layui-col-xs6">
                            <label class="layui-form-label">车辆所属公司:</label>
                            <div class="layui-input-inline">
                                <input  v-model="carRepairOrder.deptName" type="text" class="layui-input searchVal" readonly/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">租赁开始时间:</label>
                            <div class="layui-input-inline">
                                <input  v-model="carRepairOrder.timeStartRent" type="text"  class="layui-input searchVal"  readonly/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm12 layui-col-xs6">
                            <label class="layui-form-label">租赁结束时间:</label>
                            <div class="layui-input-inline">
                                <input  v-model="carRepairOrder.timeFinishRent" type="text"   class="layui-input searchVal"  readonly/>
                            </div>
                        </div>
                        <!--<div class="layui-inline layui-col-md6 layui-col-sm12 layui-col-xs6">
                            <label class="layui-form-label">车辆当前里程数:</label>
                            <div class="layui-input-inline">
                                <input   v-model="carRepairOrder.sumOdograph"   type="text"   class="layui-input searchVal"  readonly/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm12 layui-col-xs6">
                            <label class="layui-form-label">车辆用途:</label>
                            <div class="layui-input-inline">
                                <input  v-model="carRepairOrder.rentTypeStr" type="text"   class="layui-input searchVal" placeholder="" readonly/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm12 layui-col-xs6">
                            <label class="layui-form-label">车辆所属仓库:</label>
                            <div class="layui-input-inline">
                                <input  v-model="carRepairOrder.carDepotName" type="text"   class="layui-input searchVal" placeholder="" readonly/>
                                <input  v-model="carRepairOrder.carDepotId" type="hidden"   class="layui-input searchVal" placeholder="" readonly/>
                            </div>
                        </div>-->
                    </div>
                </div>
            </div>
        </div>
        <div class="form-content-box">
            <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                维修信息
            </div>
            <div class="form-content-session-box">
                <div class="card">
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">维修开始时间:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.repairStartDate" id="repairStartDate" lay-verify="repairStartDateVerify" type="text" class="layui-input searchVal"   placeholder="请选择维修开始时间" readonly/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">故障描述:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.faultDesc" maxlength="20"  lay-verify="faultDescVerify" type="text" class="layui-input searchVal"   placeholder="请描述故障/字数限制20字以内" />
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">维修厂名称:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.serviceName"   lay-verify="serviceNameVerify" type="text" class="layui-input searchVal"   placeholder="请输入维修厂名称" />
                            </div>
                        </div>
                    </div>
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">维修厂报价/元:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.repairShopQuotation"  id="repairShopQuotation" lay-verify="repairShopQuotationVerify" type="text" class="layui-input searchVal"   placeholder="请输入维修厂报价" />
                            </div>
                        </div>
                    </div>
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">维修内容:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.repairContent"   lay-verify="repairContentVerify" type="text" class="layui-input searchVal"   placeholder="请输入维修内容" />
                            </div>
                        </div>
                    </div>
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">维修价格用户支付金额/元:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.userPay" id="userPayId"  lay-verify="userPayVerify" type="text" class="layui-input searchVal"   placeholder="请输入金额" />
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">维修价格平台支付金额/元:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.platformPay"   id="platformPayId"  lay-verify="platformPayVerify" type="text" class="layui-input searchVal"   placeholder="请输入金额" />
                            </div>
                        </div>
                    </div>
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">维修价格保险支付金额/元:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.insurancePay"  id="insurancePayId" lay-verify="insurancePayVerify" type="text" class="layui-input searchVal"   placeholder="请输入金额" />
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">总金额/元:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.totalPay"   lay-verify="totalPayVerify" type="text" class="layui-input searchVal"  readonly/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">是否提供备用车:</label>
                            <div class="layui-input-inline">
                                <!--是否提供备用车 1是 2否-->
                                <select  lay-filter="isSpareCar" v-model="carRepairOrder.isSpareCar"  lay-verify="isSpareCarVerify">
                                    <option value="">请选择是否提供备用车</option>
                                    <option value=1>是</option>
                                    <option value=2>否</option>
                                </select>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">备用车车牌号:</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.spareCarNo"   type="text"   lay-verify="spareCarNoVerify" class="layui-input searchVal"  placeholder="请输入备用车车牌号" />
                            </div>
                        </div>
                    </div>
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                            <label class="layui-form-label">备注:</label>
                            <div class="layui-input-inline">
                                <textarea v-model="carRepairOrder.remark" placeholder="请输入备注内容" class="layui-textarea" maxlength="200"></textarea>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md12 layui-col-sm12 layui-col-xs12">
                            <label class="layui-form-label">维修附件:</label>
                            <div class="layui-input-inline">
                                <div class="layui-input-inline-upload">
                                    <div :id="fileLstId" class="layui-input-inline-upload-show box-rect" v-for="(item,index) in fileLst">
                                        <div v-show="item.typeFile == 1" class="layui-input-inline-upload-button">
                                            <img :src="imageURL + item.url" class="view-img">
                                        </div>
                                        <div v-show="item.typeFile != 1" class="layui-input-inline-upload-button">
                                            {{item.nameAccessory}}
                                        </div>
                                        <div class="layui-input-inline-upload-show-delete btn-event" @click="delFile(item.id)">
                                            删除
                                        </div>
                                    </div>
                                    <div class="layui-input-inline-upload-button box-rect box-rect-event" id="addFile">
                                        <img src="../../statics/images/inline-upload@2x.png">
                                    </div>
                                </div>
                                <div class="layui-input-inline-upload-text" style="padding-bottom: 10px">附件说明：附件最大支持50M，
                                    <br/>
                                    支持格式：PDF、Word、Excel、JPG、PNG 、ZIP、RAR
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-content-box">
            <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                反馈信息
            </div>
            <div class="form-content-session-box">
                <div class="card">
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">维修结束时间：</label>
                            <div class="layui-input-inline">
                                <input v-model="carRepairOrder.repairEndDate" id="repairEndDate" lay-verify="repairEndDateVerify" type="text" class="layui-input searchVal"   placeholder="请选择维修结束时间" readonly/>
                            </div>
                        </div>
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">是否已结算:</label>
                            <div class="layui-input-inline">
                                <!--费用结算 1未结算 2已结算-->
                                <select  lay-filter="costSettlement" v-model="carRepairOrder.costSettlement">
                                    <option value="">请选择是否已结算</option>
                                    <option value="1">未结算</option>
                                    <option value="2">已结算</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row layui-form-row-content">
                        <div class="layui-inline layui-col-md6 layui-col-sm6 layui-col-xs6">
                            <label class="layui-form-label">维修反馈意见:</label>
                            <div class="layui-input-inline">
                                <textarea v-model="carRepairOrder.repairFeedback" placeholder="请输入维修反馈意见" class="layui-textarea"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="form-content-box" v-show="openFlow">
            <div class="list-search-sup-title new-layui-title border-bottom-dashed">
                车辆出险流程
            </div>
            <div class="car-details-info car-padding">
                <div class="car-flowChart">
                    <div class="car-flowChart-circle" v-for="(item, index) in bpmChartDtoList" :key="item.index">
                        <div class="car-flowChart-images">
                            <img class="car-flowChart-icon" v-if="item.approveStatus != 2" src="../../statics/images/point2.png" alt="">
                            <img class="car-flowChart-line" v-if="item.approveStatus != 2 && index != bpmChartDtoList.length-1" src="../../statics/images/line3.png" alt="">
                            <img class="car-flowChart-icon" v-if="item.approveStatus == 2" src="../../statics/images/point.png" alt="">
                            <img class="car-flowChart-line" v-if="item.approveStatus == 2 && index != bpmChartDtoList.length-1" src="../../statics/images/line4.png" alt="">
                        </div>
                        <div class="car-flowChart-content">
                            <div class="car-flowChart-status">
                                <p class="car-flowChart-title">{{item.userName}}-{{item.nodeName}}</p>
                                <p class="car-flowChart-text">{{item.approveTime}}</p>
                            </div>
                            <div class="car-flowChart-status-feedback">
                                <p class="car-flowChart-title car-flowChar-color">{{item.approveNodeStatus}}</p>
                                <p class="car-flowChart-text" v-if="item.elapsedTime != null && item.elapsedTime != ''">耗时:{{item.elapsedTime}}</p>
                            </div>
                            <div class="car-flowChart-status" v-if="item.approveContent != null && item.approveContent != ''">
                                <p class="car-flowChart-title">审核意见:{{item.approveContent}}</p>
                                <p class="car-flowChart-text"></p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="float-btn-group bottom-bar">
            <a class="layui-btn reset-btn" @click="cancel">取消</a>
            <a class="layui-btn search-btn" lay-submit lay-filter="saveOrUpdate">保存</a>
        </div>
    </form>
</div>
<script src="../../statics/js/modules/carrepairorder/carrepairorderadd.js"></script>
</body>
</html>